package com.southwind.service.impl;

import com.southwind.entity.Fruit;
import com.southwind.mapper.FruitMapper;
import com.southwind.service.FruitService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yinxiaozhi
 * @since 2021-05-23
 */
@Service
public class FruitServiceImpl extends ServiceImpl<FruitMapper, Fruit> implements FruitService {
    
    @Autowired
    private FruitMapper fruitMapper;
    
    @Override
    public List<Fruit> selectWhereList(@RequestBody Fruit fruit) {
//        System.out.println("===");
////        System.out.println("---");
        return fruitMapper.selectWhereList(fruit);
    }

}
